#include <stdio.h>

int main(int argc, char *argv[])
{
        unsigned char x = 0x22;//0010 0010
        int n = 3;//

        //x = x | (1 << n-1);
        //printf("%#x\n", x);//0010 0110

        n = 2;
        x = x & ~(1 << (n-1));
        printf("%#x\n", x);//0010 0000

        return 0;
}
